﻿using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.Hr;

/// <summary>
/// 员工体检表
/// 新增体检表
/// 如果是年度体检则需要关联体检表，如果是入职体检则需要写入体检信息
/// </summary>
public class SysPersonMedical : BasePoco
{
    [Display(Name = "员工ID", Description = "关联员工主键", GroupName = "基本信息")]
    public Guid? PersonId { get; set; }

    [Display(Name = "员工", Description = "关联的员工实体", GroupName = "基本信息")]
    public SysPerson Person { get; set; }
    
    [Required]
    [Display(Name = "体检批次表", Description = "体检批次表", GroupName = "体检信息")]
    public Guid? PersonMedicalBatcheId { get; set; }
    
    [Display(Name = "体检批次表", Description = "体检批次表", GroupName = "体检信息")]
    public SysPersonMedicalBatche PersonMedicalBatche { get; set; }

    [Required]
    [Display(Name = "体检结果", Description = "体检结论", GroupName = "体检信息")]
    [StringLength(256)]
    public string Result { get; set; }

    [Display(Name = "体检报告", Description = "体检报告文件", GroupName = "体检信息")]
    public Guid? MedicalReportId { get; set; }

    [Display(Name = "体检报告", Description = "体检报告文件", GroupName = "体检信息")]
    public FileAttachment MedicalReport { get; set; }

}